Skip to content

test: Wire wrapper and service endpoint options and declare TLS peer verification in the contract test service - #481

Merged
kinyoklion merged 1 commit into
mainfrom
rlamb/contract-tests-wrapper-endpoints-tls
Nov 3, 2026
Merged

kinyoklion merged 1 commit into
mainfrom
rlamb/contract-tests-wrapper-endpoints-tls

Conversation

@kinyoklion

@kinyoklion kinyoklion commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Summary

The contract test service now maps configuration.wrapper to wrapper_name/wrapper_version (an empty name or version counts as unset) and configuration.serviceEndpoints to stream_uri/base_uri/events_uri, and streams by default when only serviceEndpoints.streaming is given. It declares wrapper, service-endpoints and tls:verify-peer, so the harness now runs the wrapper header tests, events/disabling, service endpoints/using separate service endpoints properties (v2) and the three invalid tls certificate tests. The SDK verifies peers by default, so TLS needs no mapping.

Tested locally against harness v2.42.0 and v3.2.0-alpha.15 with persistence tests enabled: every newly run test passes and no test that passed on main fails or disappears.

Opened from termag


Note

Overview
The contract test ClientEntity now maps harness configuration.serviceEndpoints onto SDK stream_uri / base_uri / events_uri (applied early; legacy streaming/polling/events blocks can still override). When there is no dataSystem, streaming, or polling block, use_ldd is enabled only if serviceEndpoints.streaming is absent—so a streaming-only endpoint config can drive live updates without an explicit streaming section.

configuration.wrapper is mapped to wrapper_name and wrapper_version, treating empty strings as unset.

The test service advertises wrapper, service-endpoints, and tls:verify-peer capabilities so the harness runs wrapper header, separate-endpoints, events-disable, and invalid-TLS scenarios (peer verification relies on SDK defaults, not new mapping).

Reviewed by Cursor Bugbot for commit 0370c08. Bugbot is set up for automated code reviews on this repo. Configure here.

…verification in the contract test service

Generated-by: termag
@kinyoklion
kinyoklion marked this pull request as ready for review November 3, 2026 17:54
@kinyoklion
kinyoklion requested a review from a team as a code owner November 3, 2026 17:54
@kinyoklion
kinyoklion merged commit 9a2f5b9 into main Nov 3, 2026
13 checks passed
@kinyoklion
kinyoklion deleted the rlamb/contract-tests-wrapper-endpoints-tls branch November 3, 2026 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants